#include <dolphin/socket.h>
#define SO_PF_UNSPEC 0 // Unspecified
#define SO_PF_INET 2 // ARPA Internet protocols
typedef struct SOSockAddrIn
{
u8 len; // size of socket address structure
u8 family; // the address family
u16 port; // the port number
SOInAddr addr; // the Internet address
} SOSockAddrIn;
SOSockAddrIn is the data type used to represent Internet socket
addresses. The len field should be set to sizeof(SOSockAddrIn)
whenever a socket function takes socket address structures as arguments.
Note: The GameCube socket functions do not take the length of the socket address structure via a function argument.